home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-9.10-netbook-remix-PL.iso / casper / filesystem.squashfs / etc / speech-dispatcher / modules / swift-generic.conf < prev   
Text File  |  2009-10-13  |  3KB  |  66 lines

  1. # Swift software output module is based on the generic plugin for Speech
  2. # Dispatcher. It means there is no C code written explicitly for
  3. # this plugin, all the specifics are handled in this configuration
  4. # and we call a simple command line client to perform the actual
  5. # synthesis. Note that this is not an optimal solution, but
  6. # it's reported to work.
  7. #Use this config file with the sd_generic output module.
  8. #
  9. # IMPORTANT: The audio output method relies on an audio playback
  10. # utility (play, aplay, paplay for OSS, ALSA or Pulse)
  11. # being installed. If this is not the case, consider installing it
  12. # or replace the $PLAY_COMMAND string in the GenericExecuteString below
  13. # with play, paplay or similar.
  14. #
  15. # Please note that Swift software is currently *not* Free Software.
  16. #It can be purchased at www.cepstral.com.
  17.  
  18. # GenericExecuteSynth is the shell command that should be
  19. # executed in order to say some message. This command must
  20. # stop saying the message on SIGKILL, otherwise it's useless.
  21. # You can use the variables $LANGUAGE, $VOICE, $PITCH and $RATE
  22. # which will be substituted for the appropriate value (you
  23. # can modify this value, see other parameters).
  24. # The command can be split into more lines, if necessary, using '\'.
  25. GenericExecuteSynth \
  26.  "echo \'$DATA\' >/tmp/swift-speak.txt && /opt/swift/bin/swift -p speech/rate=$RATE,speech/pitch/shift=$PITCH,tts/content-type=text/plain,tts/text-encoding=utf-8,config/default-voice=$VOICE -f /tmp/swift-speak.txt -o /tmp/swift-speak.wav&& $PLAY_COMMAND /tmp/swift-speak.wav" 
  27.  
  28. # GenericStripPunctChars is a list (enclosed in doublequotes) of
  29. # all the characters that should be replaced by whitespaces in
  30. # order not to be badly handled by the output module or misinterpreted
  31. # by shell.
  32. # command characters.
  33. GenericStripPunctChars  "[]"
  34.  
  35. # AddVoice specifies which $VOICE string should be assigned to
  36. # each language and symbolic voice name. All the voices you want
  37. # to use must be specified here.
  38.  
  39. AddVoice    "en"    "MALE1"        "David"
  40. AddVoice    "en"    "FEMALE1"     "Diane"
  41. AddVoice    "en"    "FEMALE2"    "Linda"
  42. AddVoice    "en"    "FEMALE3"    "Callie"
  43.  
  44. # These parameters set _rate_ and _pitch_ conversion. This is
  45. # part of the core of the definition of this generic output
  46. # module for this concrete synthesizer, it's not intended to
  47. # be modified by common users.
  48. # The resulting rate (or pitch) has the form:
  49. #     (speechd_rate * GenericRateMultiply) + GenericRateAdd
  50. # while speechd_rate is a value between -100 (lowest) and +100 (highest)
  51. # You have to define some meaningful conversion for each synthesizer
  52.  
  53. GenericRateForceInteger 1
  54.  
  55. GenericRateAdd 238
  56. GenericPitchAdd 1
  57. # (These values are multiplied by 100, because DotConf currently
  58. # doesn't support floats. So you can write 0.85 as 85 and so on.)
  59.  
  60. GenericRateMultiply 262
  61. GenericPitchMultiply 1
  62.  
  63. # Debug turns debugging on or off
  64. # See speechd.conf for information where debugging information is stored
  65. # Debug 0
  66.